﻿using System.Collections.Generic;

namespace JNPF.Basics.Models.WorkFlow.Model.PropertiesModels
{
    public class ApproversProperties
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 指定审批人
        /// </summary>
        public List<string> approvers { get; set; }
        /// <summary>
        /// 指定审批岗位
        /// </summary>
        public List<string> approverPos { get; set; }
        /// <summary>
        /// 审批类型（类型参考FlowTaskOperatorEnum类）
        /// </summary>
        public int assigneeType { get; set; }
        /// <summary>
        /// 表单权限数据
        /// </summary>
        public List<FormOperatesModels> formOperates { get; set; }
        /// <summary>
        /// 指定抄送岗位
        /// </summary>
        public List<string> circulatePosition { get; set; }
        /// <summary>
        /// 指定抄送人
        /// </summary>
        public List<string> circulateUser { get; set; }
        /// <summary>
        /// 进度
        /// </summary>
        public string progress { get; set; }
        /// <summary>
        /// 驳回节点
        /// </summary>
        public string rejectStep { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 审批事件
        /// </summary>
        public string hasApproverFunc { get; set; }
        /// <summary>
        /// 审批事件接口url
        /// </summary>
        public string approverInterfaceUrl { get; set; }
        /// <summary>
        /// 审批事件接口请求类型
        /// </summary>
        public string approverInterfaceType { get; set; }
    }

    /// <summary>
    /// 流程节点表单权限
    /// </summary>
    public class FormOperatesModels
    {
        /// <summary>
        /// 可读
        /// </summary>
        public bool read { get; set; }
        /// <summary>
        /// 控件名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 控件id
        /// </summary>
        public string id;
        /// <summary>
        /// 可写
        /// </summary>
        public bool write { get; set; }
    }
}
